# format 格式化字符串（相当于打印对应的变量）
# 有两种用用法
# 传参 'XXXXX{time}XXXXXXXX{day}'.format(time = time, day = day)
# 传参 'XXXXX{0}XXXXXXXX{1}'.format(time,day)
# 传参  f'xxxxxx{time}xxxxxx{day}'  # f-string 格式化字符串

#祝福短信

name = ['晓晓', '小明', '小红', '小刚']
year = 2023
for person in name:
    message_01 = f"亲爱的{person}，祝你在{year}年里，心想事成，万事如意！"
    message_02 = "亲爱的{person}，祝你在{year}年里，心想事成，万事如意！".format(person=person, year=year)
    # print(message)  
    print(message_01)
    print(message_02)
    print("") # 换行